package util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PropertyProvider{

	private static final Logger LOG = LoggerFactory.getLogger (PropertyProvider.class);
	private static Properties properties;
	static {
		properties = new Properties ();
		FileInputStream fis= null;
		try {
			fis= new FileInputStream("util/util.properties");
			properties.load(fis);
		} catch (final IOException e) {
			e.printStackTrace();
			LOG.error("properties file not found");
		} finally {
			try {
				if (fis!= null) {
					fis.close();
				}
			} catch (final IOException e) {
				e.printStackTrace();
			}
		}
	}
	public static String getProperty(final String key) {
		return properties.getProperty(key);
	}
	
}